package com.springboot.demo.lambda;

import org.springframework.boot.autoconfigure.info.ProjectInfoProperties;

import java.util.Arrays;
import java.util.Comparator;
import java.util.function.*;

public class FunLam {
    public static void git(){
        FunClass funClass = new FunClass();
        Function<String,Integer> f = funClass::fun;
        Consumer<String> con = funClass::consumer;
        Supplier<String> sup = funClass::supplier;
        BiFunction<FunClass,String,Integer> bi = FunClass::fun;
        bi.apply(funClass,"sss");

        Function<Integer,int[]> f1  = int[]::new;
        int[] apply = f1.apply(5);
        System.out.println(Arrays.toString(apply));

    }
    public static void main(String[] args) {
        git();

    }
}
